<extend name="Public/base"/>

<block name="body">
  
    <div class="main-title">
        <h2>统计结果 <button class="btn btn-default btn-return" onclick="javascript:history.back(-1);return false;"><i class="glyphicon glyphicon-share-alt"></i> 返 回</button></h2>
    </div>

    <div class="tab-wrap">
        <ul class="tab-nav nav  nav-tabs">
            <volist name="dates" id="date">
            <li data-tab="tab{$key}" <eq name="key" value="0">class="current"</eq> ><a href="javascript:void(0);">{$date}</a></li>
            </volist>
        </ul>
    </div>
    <div class="tab-content">
        <form>
        <volist name="dates" id="date">
        <div id="tab{$key}" class="tab-pane <eq name="key" value="0">in</eq> tab{$key}">
        
            <div class="data-table table-striped">
            <table class="table table-bordered">
            <thead>
                <tr>
                <th class="" rowspan="2"></th>
                <th class="" colspan="5">视频</th>
                <th class="" colspan="2">用户</th>
                <th class="" colspan="4">app</th>
                </tr>
                 <tr>
                <th class="">发布</th>
                <th class="">播放</th>
                <th class="">点赞</th>
                <th class="">评论</th>
                <th class="">收藏</th>
                <th class="">登录</th>
                <th class="">注册</th>
                <th class="">下载</th>
                <th class="">新增</th>
                <th class="">活跃</th>
                <th class="">昨日留存</th>
                </tr>
            </thead>
            <tbody>
                <volist name="platforms" id="p">
                <tr>
                <td>{$p}</td>
                <td>{$results[$date]['client'][$key]['video']['submit']}</td>
                <td>{$results[$date]['client'][$key]['video']['play']}</td>
                <td>{$results[$date]['client'][$key]['video']['zan']}</td>
                <td>{$results[$date]['client'][$key]['video']['comments']}</td>
                <td>{$results[$date]['client'][$key]['video']['favour']}</td>
                <td>{$results[$date]['client'][$key]['user']['login']}</td>
                <td>{$results[$date]['client'][$key]['user']['register']}</td>
                <td>{$results[$date]['client'][$key]['app']['download']}</td>
                <td>{$results[$date]['mac'][$key]['new']}</td>
                <td>{$results[$date]['mac'][$key]['active']}</td>
                <td>{$results[$date]['mac'][$key]['reten']}</td>
                </tr>
                </volist>
                <tr>
                <td>Apps</td>
                </tr>
                
                    <volist name="results[$date]['appid']" id="app">
                    <tr>
                        <td>
                        {$key}
                        </td>
                        <td></td>
                        <td>{$app.video.play}</td>
                         </tr>
                    </volist>
               
                <td>Froms</td>
                </tr>
                
                    <volist name="results[$date]['from']" id="from">
                    <tr>
                        <td>
                        {$key}
                        </td>
                        <td></td>
                        <td>{$from.video.play}</td>
                        <td>{$from.video.zan}</td>
                        <td>{$from.video.comments}</td>
                        </tr>
                    </volist>
                
            </tbody>
            </table>
            </div>
        </div>
        </volist>
        </form>
    </div>
     
</block>

<block name="script">
    <script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Video/index')}');
        showTab();
    </script>
</block>
